//
//  GetLocation.m
//  BiuWeather
//
//  Created by 楼楚 on 16/3/7.
//  Copyright © 2016年 Chu Lou. All rights reserved.
//

#import "GetLocation.h"
//#import "MapManager.h"
#import <CoreLocation/CoreLocation.h>


@interface GetLocation ()<CLLocationManagerDelegate>{
    
    CLGeocoder *_geocoder;
}

@end
@implementation GetLocation

-(void)getAddressByLatitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude{
    //反地理编码
    CLLocation *location=[[CLLocation alloc]initWithLatitude:latitude longitude:longitude];
    [_geocoder reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error) {
        CLPlacemark *placemark=[placemarks firstObject];
        NSLog(@"详细信息:%@",placemark.addressDictionary);
    }];
}



@end
